package com.nuan.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = ("/web"))
public class WebController {

	@Value(value = "${nuan.secret}")
	private String uuid;

	@Value(value = "${nuan.number}")
	private int randomID;

	@Value(value = "${nuan.limitnumber}")
	private int limitnumber;

	@RequestMapping(value = "/index")
	public Map<String, Object> Index() {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("uuid", uuid);
		map.put("randomID", randomID);
		map.put("limitnumber", limitnumber);
		return map;
	}
}